import jieba
from collections import Counter

with open('三国演义.txt', 'r', encoding='utf-8') as f:
    content = f.read()

words = jieba.lcut(content)
word_counts = Counter(words)

# 输出词频统计结果
for word, count in word_counts.items():
    print(f"{word}: {count}")